<template>
    <div style="display: flex;flex-direction: column;width: 100vw;align-items: center;gap: 1em">
        <el-input v-model="input" style="width: 240px;" />
        <MyComponent :key="sKey" :input/>
        <el-button @click="click">点击</el-button>
    </div>
</template>

<script setup>
    import MyComponent from './components/MyComponent.vue';
    const input = ref('input-str');
    const sKey = ref(new Date().getTime());
    function click() {
        sKey.value = new Date().getTime()
    }
</script>

<style scoped>

</style>
